
VPATH = components:src
CPPFLAGS = -P -C

DEPENDS = TakeControlService.jsx \
	  TkctrlConstants.jsx \
	  Store.jsx \
	  Database.jsx \
	  Policy.jsx

all: TakeControlService.js ITakeControlService.xpt

TakeControlService.js: $(DEPENDS)
	cpp $(CPPFLAGS) $< components/$@

ITakeControlService.xpt: ITakeControlService.idl
	$(HOME)/bin/xpidl -m typelib -e components/$@ $<

clean:
	rm -f components/*.js components/*.xpt
